const path = require("path");
const webpack = require("webpack");
module.exports = {
  mode: "production",
  // 出口
  output: {
    path: path.resolve(__dirname, "../build"),
    filename: "bundle.min.js"
  },
  plugins: [
    // 告诉生产环境打包，第三方包已经打包过了
    new webpack.DllReferencePlugin({
      context: path.join(__dirname, ".."), // 引用路径，可不写
      manifest: require("./vendor-manifest.json")
    })
  ]
};
